// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_view;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.text.TextUtils;
import android.widget.ProgressBar;
import com.nnee.p_g.cls_b;
import com.nnee.p_img.a;
import com.nnee.p_imgex.cls_ImageViewTouch;

// Referenced classes of package com.nnee.p_pr.p_activity.view:
//            PrisImageView, bm, bh, s

class bo extends cls_a
{

    bo(cls_PrisImageView prisimageview)
    {
        a = prisimageview;
        super();
    }

    public void a(String s1, Bitmap bitmap)
    {
        boolean flag = true;
        if(com.nnee.p_pr.p_activity.p_view.PrisImageView.a(a) != null && com.nnee.p_pr.p_activity.p_view.PrisImageView.b(a).toString().equals(s1)) goto _L2; else goto _L1
_L1:
        return;
_L2:
        if(bitmap == null)
            b.c("PrisImageView", "bitmap is null");
        PrisImageView.c(a).setVisibility(8);
        if(bitmap != null) goto _L4; else goto _L3
_L3:
        if(PrisImageView.d(a) == null) goto _L6; else goto _L5
_L5:
        com.nnee.p_pr.p_activity.p_view.PrisImageView.a(a).a(PrisImageView.d(a), true, false);
_L7:
        boolean flag1;
        boolean flag2;
        if(PrisImageView.f(a) == PrisImageView.g(a))
            com.nnee.p_pr.p_activity.p_view.PrisImageView.a(a).a(new cls_bm(this));
        a.b = true;
        cls_bh bh1 = new cls_bh(a, true, false);
        if(PrisImageView.h(a) != null)
            PrisImageView.h(a).a(-1, 106, bh1);
        flag1 = com.nnee.p_pr.p_activity.p_view.bh.a(bh1);
        if(TextUtils.isEmpty(PrisImageView.i(a).g()) || !com.nnee.p_pr.p_activity.p_view.bh.b(bh1))
            break MISSING_BLOCK_LABEL_357;
        flag2 = flag;
_L8:
        cls_PrisImageView prisimageview = a;
        OutOfMemoryError outofmemoryerror;
        if(!flag1 || !flag2)
            flag = false;
        prisimageview.b(flag);
        if(PrisImageView.h(a) != null)
            PrisImageView.h(a).a(-1, 102, null);
          goto _L1
        outofmemoryerror;
        outofmemoryerror.printStackTrace();
        com.nnee.p_pr.p_activity.p_view.PrisImageView.a(a).setImageBitmap(null);
        System.gc();
        com.nnee.p_pr.p_activity.p_view.PrisImageView.a(a).setImageResource(0x7f0200f3);
          goto _L1
_L6:
        com.nnee.p_pr.p_activity.p_view.PrisImageView.a(a, BitmapFactory.decodeResource(PrisImageView.e(a).getResources(), 0x7f0200f3));
        com.nnee.p_pr.p_activity.p_view.PrisImageView.a(a).a(PrisImageView.d(a), true, false);
          goto _L7
_L4:
        com.nnee.p_pr.p_activity.p_view.PrisImageView.a(a).a(bitmap, true, false);
          goto _L7
        flag2 = false;
          goto _L8
    }

    final PrisImageView a;
}
